//
//  FriendInfoTableViewCell.m
//  e-Learning
//
//  Created by rimi on 16/6/29.
//  Copyright © 2016年 YJ. All rights reserved.
//

#import "FriendInfoTableViewCell.h"

@implementation FriendInfoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.imageVu];
        [self.contentView addSubview:self.name];
    }
    return self;
}

- (UIImageView *)imageVu{
    if (!_imageVu) {
        _imageVu = [[UIImageView alloc] initWithFrame:CGRectMake(30, 15, 70, 70)];
    }
    return _imageVu;
}

- (UILabel *)name{
    if (!_name) {
        _name = [[UILabel alloc] initWithFrame:CGRectMake(115, 15, 140, 70)];
    }
    return _name;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
